package com.explment.lens.controller.role;

import com.explment.lens.entity.SysRoleDataScopeEntity;
import com.explment.lens.service.SysRoleDataScopeService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * 角色数据范围 controller
 */
@RestController
@RequestMapping("/sysRoleDataScopeEntity")
public class SysRoleDataScopeController {
    @Autowired
    private SysRoleDataScopeService sysRoleDataScopeEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysRoleDataScopeEntityService.getById(id));
    }
}